﻿/*CREATE TRIGGER [dbo].[CultivosFechas_DeletionTrigger] 
    ON [CultivosFechas] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[CultivosFechas_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[FechaGuid] = [CultivosFechas_Tombstone].[FechaGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[CultivosFechas_Tombstone] 
    ([FechaGuid], DeletionDate)
    SELECT [FechaGuid], GETUTCDATE()
    FROM deleted 
END*/